package com.ccb.sc.common.modules.member.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * @author ken
 * @since 2020-09-15
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@Getter
public enum LoginType implements IEnum<Integer> {

    /**
     * 登录类型 1微信小程序 2字节小程序 3微信app
     */
    WX_MA(1, "微信小程序"),

    BYTE_DANCE_MA(2, "字节小程序"),

    WX_APP(3, "微信APP"),

    APPLE_ID(4, "Apple登录"),

    ;

    private int value;
    private String desc;

    LoginType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
